using System;
using System.Collections.Generic;

namespace Data.Models
{
    public partial class ProductModel
    {
        public ProductModel()
        {
            this.LabourDetails = new List<LabourDetail>();
            this.MaterialDetails = new List<MaterialDetail>();
            this.MaterialFormulas = new List<MaterialFormula>();
            this.OrderProcesses = new List<OrderProcess>();
            this.Orders = new List<Order>();
            this.OrderSummaries = new List<OrderSummary>();
            this.OtherCostDetails = new List<OtherCostDetail>();
            this.StorageDetails = new List<StorageDetail>();
            this.ToolDetails = new List<ToolDetail>();
        }

        public int ID { get; set; }
        public string Code { get; set; }
        public int CategoryID { get; set; }
        public int ProductTypeID { get; set; }
        public string Description { get; set; }
        public string Author { get; set; }
        public Nullable<System.DateTime> Date { get; set; }
        public string Catalogue { get; set; }
        public string Note { get; set; }
        public string Name { get; set; }
        public virtual Category Category { get; set; }
        public virtual ICollection<LabourDetail> LabourDetails { get; set; }
        public virtual ICollection<MaterialDetail> MaterialDetails { get; set; }
        public virtual ICollection<MaterialFormula> MaterialFormulas { get; set; }
        public virtual ICollection<OrderProcess> OrderProcesses { get; set; }
        public virtual ICollection<Order> Orders { get; set; }
        public virtual ICollection<OrderSummary> OrderSummaries { get; set; }
        public virtual ICollection<OtherCostDetail> OtherCostDetails { get; set; }
        public virtual ICollection<StorageDetail> StorageDetails { get; set; }
        public virtual ICollection<ToolDetail> ToolDetails { get; set; }
        public virtual ProductType ProductType { get; set; }
    }
}
